package models;

import java.util.*;

import javax.persistence.*;

import play.db.jpa.*;
import play.data.validation.*;

/**
 * Leave is mysql reserv word
 */
@Entity
public class LeaveRec extends Model {

    @Required
    @ManyToOne
    public MasLocation MasLoc;
    @Required
    @ManyToOne
    public Company CompanyID;
    @Required
    @ManyToOne
    public Employee EmployeeID;
    @Required
    @MaxSize(10)
    public String LeaveType;
    @Required
    public Date LeaveFromDate;
    @Required
    public Date LeaveToDate;
    @MaxSize(50)
    public String LeaveNote;
}